@charset "UTF-8";
* {
  box-sizing: border-box;
}

html,
body {
  padding: 0;
  margin: 0;
}

html {
  overflow: hidden;
}

body {
  width: 100vw;
  height: 100vh;
  overflow-y: auto;
}

.main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.list-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 80vh;
  overflow: hidden;
  position: relative;
}
.list-item:hover .item-image::before {
  background-color: rgba(0, 0, 0, 0.2);
}
.list-item .item-image {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.list-item .item-image::before {
  /* 遮罩 */
  position: absolute;
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  transition: all 0.3s ease;
  background-color: rgba(0, 0, 0, 0.4);
}
.list-item .item-text {
  font-family: "Courier New", Courier, monospace;
  text-align: center;
  color: #ffffff;
}

.list-item:nth-child(1) .item-image {
  background: url("./images/1.jpg") no-repeat center 0px fixed;
}

.list-item:nth-child(2) .item-image {
  background: url("./images/2.jpg") no-repeat center 0px fixed;
}

.list-item:nth-child(3) .item-image {
  background: url("./images/3.jpg") no-repeat center 0px fixed;
}

.list-item:nth-child(4) .item-image {
  background: url("./images/4.jpg") no-repeat center 0px fixed;
}

.list-item:nth-child(5) .item-image {
  background: url("./images/5.jpg") no-repeat center 0px fixed;
}

.list-item:nth-child(6) .item-image {
  background: url("./images/6.jpg") no-repeat center 0px fixed;
}

.item-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 20px;
}

.item-desc {
  font-size: 1.2rem;
}